package com.shujia.wyh.day12.ketang;

class Fu6 {
    public void show() {
        System.out.println("fu show");
    }
}

class Zi6 extends Fu6 {
    public void show() {
        System.out.println("zi show");
    }

    public void method() {
        System.out.println("zi method");
    }
}

class DuoTaiTest3 {
    public static void main(String[] args) {
        Fu6 f = new Zi6();
//        f.method();
        Zi6 z = (Zi6) f;
        z.method();
    }
}
